package nl.hr.minor.mobilelife.j1213.jlr;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity implements OnClickListener {

	private static final String LOG_TAG = MainActivity.class.getSimpleName();
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
    
    @Override
    public void onClick(View v) {
    	switch(v.getId()){
    	case R.id.activity_main_button_find_it:
    		startActivity(new Intent(this, nl.hr.minor.mobilelife.j1213.jlr.findit.SplashScreen.class));
    		break;
    	case R.id.activity_main_button_words:
    		startActivity(new Intent(this, nl.hr.minor.mobilelife.j1213.jlr.words.LevelActivity.class));
    		break;
    	case R.id.activity_main_button_three:
    		startActivity(new Intent(this, nl.hr.minor.mobilelife.j1213.jlr.flow.SplashScreen.class));
    		break;
    	default:
    		Log.d(LOG_TAG, "onClick fired with ID " + v.getId() + ", but there is no case specified for it.");
    	}
    }
}
